package Lab02.test29;

public class ExceptionTest {
    public static void main(String[] args) {
        int[] numbers = new int[5];
        numbers[0] = 11;
        numbers[1] = 21;
        numbers[2] = 33;
        numbers[3] = 77;
        numbers[4] = 99;


        try {
            System.out.println(numbers[5]);

        } catch (ArrayIndexOutOfBoundsException e){
        System.out.println("数组越界啦！！！");
    }
    finally{
        System.out.println("最后都会执行的语句！！！");
    }
    }
}
